import axios from 'axios';

export function addProduct(param) {
  return axios.post('/api/product/add', param);
}

export function getAllDistribution() {
  return axios.get('/api/product/data');
}

export function getByProvince(province) {
  return axios.get(`/api/product/getProvinceData?province=${province}`);
}

export function deleteById(id) {
  return axios.post(`/api/product/delete?id=${id}`);
}
